<?php namespace Home\Controller;
use Hdphp\Controller\Controller;
class TijiaoController extends Controller{
	public function index(){
		if(isset($_SESSION['uid'])){
//			p($_SESSION);exit;
		$data=isset($_SESSION['cart']['goods'])?$_SESSION['cart']['goods']:[];	
//		p($data);exit;
		View::with('data',$data);
		}else{
			View::error('请先登录',U('Member/login'));
		}
		View::make();
	}
}
